#ifndef IMAGECLICKABLE_H
#define IMAGECLICKABLE_H

#include <QLabel>

class ImageClickable : public QLabel
{
    Q_OBJECT

public:
    explicit ImageClickable(QLabel *parent=0);
    virtual ~ImageClickable(){}
protected:
    virtual void loadImage(const QString & fichier)=0;

protected:
    void mousePressEvent(QMouseEvent * event);
    void mouseDoubleClickEvent(QMouseEvent * event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

signals:
    void clicked(QMouseEvent *event);
    void doubleClicked(QMouseEvent *event);
    void mouseMoved(QMouseEvent *event);
    void mouseReleased(QMouseEvent *event);
public slots:
    
};

#endif // IMAGECLICKABLE_H
